﻿using System.Windows.Controls;
using System.Windows.Navigation;
using ADministration.ViewModels;

namespace ADministration.Views.CategoriesViews
{
    public partial class DeleteCategory : Page
    {
        public DeleteCategory()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            DeleteCategoryViewModel viewModel = 
                new DeleteCategoryViewModel(this.NavigationService, NavigationContext);
            this.DataContext = viewModel;
        }

    }
}
